package com.qidian.mespro.mapper;

import com.qidianit.mes.pojo.Process;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProcessMapper {
    //多条件分页查询工序
    List<Process> processList(Process process);

    //新增工序
    int addProcess(Process process);

    //根据工序编号查询当个工序对象
    Process selectProcessByCode(String code);

    //根据id编辑工序
    int updateProcessById(Process process);

    //根据id删除工序
    int deleteProcessById(Long id);

    //根据id批量删除工序
    int batchDelete(@Param("ids") Long [] ids);

    Process selectById(Long processId);

    List<Process> selectProcessByWorkflowId(Long workflowId);
}
